home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16094 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  23 lines

  1. Newsgroups: comp.lang.c++
  2. Path: presby.edu!jtbell
  3. From: jtbell@presby.edu (Jon Bell)
  4. Subject: Re: What are the differences between structures and classes in C++ ?
  5. Message-ID: <DpLny7.4s5@presby.edu>
  6. Date: Tue, 9 Apr 1996 14:51:43 GMT
  7. References: <4k5m65$av@hpscit.sc.hp.com> <marnoldDpHvED.E0t@netcom.com> <31696B8E.6461@datalytics.com> <3169F3F5.4D@tarley_pc.loc201.tandem.com>
  8. Organization: Presbyterian College, Clinton, South Carolina USA
  9.  
  10.  Anatoli Mandelchtam  <tolik@tarley_pc.loc201.tandem.com> wrote:
  11. >Nope. Structs *are* classes since classes include all features of
  12. >structs _and_ additional functionality.
  13.  
  14. What additional functionality?  You can change all of your classes to
  15. structs if you like, and your program should compile exactly as it did
  16. before, provided that you add the "private" keyword at the beginning of
  17. each struct declaration if you've been using the default "private"
  18. behavior of classes. 
  19.  
  20. -- 
  21. Jon Bell <jtbell@presby.edu>                        Presbyterian College
  22. Dept. of Physics and Computer Science        Clinton, South Carolina USA
  23.